package com.cmfi.domain;

import lombok.Data;

/**
 * 货叉架实体
 */
@Data
public class ForkliftRack {

	private Long id;

	// 门架序列号
	private String serialNum;

	// 上线时间
	private String onlineTime;
	
	//装配工位
	private String assemblyWorkStation;
	
	//装配人
    private String username;
    
    //货叉架特有的字段，待与用户确认

    public Long getId() {
        return this.id;
    }

    public ForkliftRack id(Long id) {
        this.setId(id);
        return this;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public String getSerialNum() {
		return serialNum;
	}

	public void setSerialNum(String serialNum) {
		this.serialNum = serialNum;
	}

	public String getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(String onlineTime) {
		this.onlineTime = onlineTime;
	}

	public String getAssemblyWorkStation() {
		return assemblyWorkStation;
	}

	public void setAssemblyWorkStation(String assemblyWorkStation) {
		this.assemblyWorkStation = assemblyWorkStation;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public String toString() {
		return "HydroCylinder [id=" + id + ", serialNum=" + serialNum + ", onlineTime=" + onlineTime
				+ ", assemblyWorkStation=" + assemblyWorkStation + ", username=" + username + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((assemblyWorkStation == null) ? 0 : assemblyWorkStation.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((onlineTime == null) ? 0 : onlineTime.hashCode());
		result = prime * result + ((serialNum == null) ? 0 : serialNum.hashCode());
		result = prime * result + ((username == null) ? 0 : username.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ForkliftRack other = (ForkliftRack) obj;
		if (assemblyWorkStation == null) {
			if (other.assemblyWorkStation != null)
				return false;
		} else if (!assemblyWorkStation.equals(other.assemblyWorkStation))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (onlineTime == null) {
			if (other.onlineTime != null)
				return false;
		} else if (!onlineTime.equals(other.onlineTime))
			return false;
		if (serialNum == null) {
			if (other.serialNum != null)
				return false;
		} else if (!serialNum.equals(other.serialNum))
			return false;
		if (username == null) {
			if (other.username != null)
				return false;
		} else if (!username.equals(other.username))
			return false;
		return true;
	}
    
    

}
